/**
 * Created by jian on 2017/12/30.
 */
var obj = getSearchObj();
console.log(obj);
$(".elder-name").html(obj.elderName)
$(".elder-card-id").html(obj.elderCard)

var resultModel = {};

var loginedUser = getLoginedUser();

var view = {
    data: resultModel
};

var vue_vm = new Vue({
    el: '#vue_vm',
    data: view
});

var data={
    "elderId": obj.elderId,
    "testTopicId":obj.testTopicId,
    "testTimesNumber":Number.parseInt(obj.testTimesNumber),
}
function getData() {
    find_basic_by_json(path + '/elderTestResultRecord/findElderTestResult',data, function (res) {
        view.data = res.data[0];
        // window.open('2-2-1cheping-2.html', '2-2-1cheping')
    });
}
getData();

function  nextItem() {
    var vd = view.data;
    //传到下一个页面的参数
    var elderData = "elderId="+obj.elderId + "&elderCard=" +obj.elderCard  + "&elderName=" + obj.elderName + "&timesNumber=" + obj.testTimesNumber;

    location.href ='2-2-1cheping-3.html?'+ elderData;
    // window.open('2-2-1cheping-3.html?'+elderData, '2-2-1cheping')
}


